#include "Area.h"

Area::Area(const Position& position, const Size& size)
        : position(position), size(size)
{
}

Area::Area(int x, int y, unsigned int width, unsigned height)
        : position(Position(x, y)), size(Size(width, height))
{
}

bool Area::operator==(const Area& other) const
{
    return (position == other.position) && (size == other.size);
}

Area Area::move(const Position& deltaPos)
{
    return Area(position.move(deltaPos), size);
}

Area Area::scale(double factor)
{
    return Area(position.scale(factor), size.scale(factor));
}

Area::~Area()
{
}
